package com.ciwong.epaper.modules.epaper.util;

import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.view.Window;
import android.widget.TextView;

import com.ciwong.epaper.R;

/**
 * Created by Administrator on 2017/3/30.
 */
public class LswTipDialog extends Dialog {

    private TextView btn_go_to_setting;


    private TextView btn_not_go_to_setting;

    private  TextView tx_question_stem;

    public LswTipDialog(Context context) {
        super(context, R.style.BookcaseDialogStyle2);
        this.requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.dialog_lsw_tips);
        setCancelable(false);
        tx_question_stem = (TextView) findViewById(R.id.tx_question_stem);


    }

    public void setStemText(String text) {
        tx_question_stem.setText(text);
    }

    public void setSettingListener(View.OnClickListener listener) {
        if (null != listener) {
            findViewById(R.id.btn_go_to_setting).setOnClickListener(listener);
        }
    }

    public void setNotSettingListener(View.OnClickListener listener) {

        if (null != listener) {
            findViewById(R.id.btn_not_go_to_setting).setOnClickListener(listener);
        }
    }

}
